//
//  AllLabelViewController.m
//  MarryMe
//
//  Created by lanou3g on 16/1/9.
//  Copyright © 2016年 revocher. All rights reserved.
//

#import "AllLabelViewController.h"
#import "AllLabelTableViewCell.h"
#import "LabelViewController.h"
@interface AllLabelViewController ()<UITableViewDataSource,UITableViewDelegate>
@property (strong, nonatomic) IBOutlet UITableView *mainTableView;

@end

@implementation AllLabelViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    self.title = @"全部标签";
    
    self.mainTableView.delegate = self;
    self.mainTableView.dataSource = self;
    
    [self.mainTableView registerNib:[UINib nibWithNibName:@"AllLabelTableViewCell" bundle:[NSBundle mainBundle]] forCellReuseIdentifier:@"AllLabelTableViewCell"];
    
    [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(haiwaihunliImage:) name:@"海外婚礼" object:nil];
    [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(zhongshihunliImage:) name:@"中式婚礼" object:nil];
     [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(zhongshihunliImage:) name:@"中式婚礼2" object:nil];
    [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(hunlishiguangImage:) name:@"婚礼灯光" object:nil];
    [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(zhongshihunshazhaoImage:) name:@"中式婚纱照" object:nil];
    [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(huahaihunshazhaoImage:) name:@"花海婚纱照" object:nil];
    [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(machanghunshazhaoImage:) name:@"马场婚纱照" object:nil];
    [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(shuixiahunshazhaoImage:) name:@"水下婚纱照" object:nil];
    [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(pujidaoImage:) name:@"普吉岛" object:nil];
    [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(balidaoImage:) name:@"巴厘岛" object:nil];
    [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(maerdaifuImage:) name:@"马尔代夫" object:nil];
    [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(siyiImage:) name:@"司仪" object:nil];
    [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(gengzhuangImage:) name:@"跟妆" object:nil];
    [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(gengpaiImage:) name:@"跟拍" object:nil];
    [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(shexiangImage:) name:@"摄像" object:nil];
    [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(shuangjiweiImage:) name:@"双机位" object:nil];
       [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(shuangjiweiImage:) name:@"双机位2" object:nil];
    [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(sanjiweiImage:) name:@"三机位" object:nil];
    [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(jiaotangImage:) name:@"教堂婚礼" object:nil];
    [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(lingzhenggengpai:) name:@"领证跟拍" object:nil];
    [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(hunlijishiImage:) name:@"婚礼纪实" object:nil];
   [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(senxiImage:) name:@"森系婚礼" object:nil];
    [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(hongseImage:) name:@"红色" object:nil];
    [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(haijingImage:) name:@"海景婚纱照" object:nil];
}






-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 1;
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    AllLabelTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"AllLabelTableViewCell"];
    return cell;
}

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    [tableView deselectRowAtIndexPath:indexPath animated:YES];
}

-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return 800;
}

-(void)haiwaihunliImage:(NSNotification *)sender{
    LabelViewController *labelVC = [[LabelViewController alloc]init];
    labelVC.label = sender.userInfo[@"海外婚礼"];
    labelVC.mark = @"71";
    [self.navigationController pushViewController:labelVC animated:YES];
}

-(void)zhongshihunliImage:(NSNotification *)sender{
    LabelViewController *labelVC = [[LabelViewController alloc]init];
    labelVC.label = sender.userInfo[@"中式婚礼"];
    labelVC.mark = @"42";
    [self.navigationController pushViewController:labelVC animated:YES];
}
-(void)zhongshihunliImage2:(NSNotification *)sender{
    LabelViewController *labelVC = [[LabelViewController alloc]init];
    labelVC.label = sender.userInfo[@"中式婚礼"];
    labelVC.mark = @"42";
    [self.navigationController pushViewController:labelVC animated:YES];
}
-(void)hunlijishiImage:(NSNotification *)sender{
    LabelViewController *labelVC = [[LabelViewController alloc]init];
    labelVC.label = sender.userInfo[@"婚礼纪实"];
    labelVC.mark = @"51";
    [self.navigationController pushViewController:labelVC animated:YES];
}
-(void)zhongshihunshazhaoImage:(NSNotification *)sender{
    LabelViewController *labelVC = [[LabelViewController alloc]init];
    labelVC.label = sender.userInfo[@"中式婚纱照"];
    labelVC.mark = @"18";
    [self.navigationController pushViewController:labelVC animated:YES];
}
-(void)huahaihunshazhaoImage:(NSNotification *)sender{
    LabelViewController *labelVC = [[LabelViewController alloc]init];
    labelVC.label = sender.userInfo[@"花海婚纱照"];
    labelVC.mark = @"64";
    [self.navigationController pushViewController:labelVC animated:YES];
}
-(void)machanghunshazhaoImage:(NSNotification *)sender{
    LabelViewController *labelVC = [[LabelViewController alloc]init];
    labelVC.label = sender.userInfo[@"马场婚纱照"];
    labelVC.mark = @"72";
    [self.navigationController pushViewController:labelVC animated:YES];
}
-(void)shuixiahunshazhaoImage:(NSNotification *)sender{
    LabelViewController *labelVC = [[LabelViewController alloc]init];
    labelVC.label = sender.userInfo[@"水下婚纱照"];
    labelVC.mark = @"76";
    [self.navigationController pushViewController:labelVC animated:YES];
}
-(void)pujidaoImage:(NSNotification *)sender{
    LabelViewController *labelVC = [[LabelViewController alloc]init];
    labelVC.label = sender.userInfo[@"普吉岛"];
    labelVC.mark = @"59";
    [self.navigationController pushViewController:labelVC animated:YES];
}
-(void)balidaoImage:(NSNotification *)sender{
    LabelViewController *labelVC = [[LabelViewController alloc]init];
    labelVC.label = sender.userInfo[@"巴厘岛"];
    labelVC.mark = @"60";
    [self.navigationController pushViewController:labelVC animated:YES];
}
-(void)maerdaifuImage:(NSNotification *)sender{
    LabelViewController *labelVC = [[LabelViewController alloc]init];
    labelVC.label = sender.userInfo[@"马尔代夫"];
    labelVC.mark = @"58";
    [self.navigationController pushViewController:labelVC animated:YES];
}
-(void)siyiImage:(NSNotification *)sender{
    LabelViewController *labelVC = [[LabelViewController alloc]init];
    labelVC.label = sender.userInfo[@"司仪"];
    labelVC.mark = @"11";
    [self.navigationController pushViewController:labelVC animated:YES];
}
-(void)gengzhuangImage:(NSNotification *)sender{
    LabelViewController *labelVC = [[LabelViewController alloc]init];
    labelVC.label = sender.userInfo[@"跟妆"];
    labelVC.mark = @"12";
    [self.navigationController pushViewController:labelVC animated:YES];
}
-(void)gengpaiImage:(NSNotification *)sender{
    LabelViewController *labelVC = [[LabelViewController alloc]init];
    labelVC.label = sender.userInfo[@"跟拍"];
    labelVC.mark = @"13";
    [self.navigationController pushViewController:labelVC animated:YES];
}
//
-(void)shexiangImage:(NSNotification *)sender{
    LabelViewController *labelVC = [[LabelViewController alloc]init];
    labelVC.label = sender.userInfo[@"摄像"];
    labelVC.mark = @"28";
    [self.navigationController pushViewController:labelVC animated:YES];
}
-(void)shuangjiweiImage:(NSNotification *)sender{
    LabelViewController *labelVC = [[LabelViewController alloc]init];
    labelVC.label = sender.userInfo[@"双机位"];
    labelVC.mark = @"36";
    [self.navigationController pushViewController:labelVC animated:YES];
}
-(void)shuangjiweiImage2:(NSNotification *)sender{
    LabelViewController *labelVC = [[LabelViewController alloc]init];
    labelVC.label = sender.userInfo[@"双机位"];
    labelVC.mark = @"36";
    [self.navigationController pushViewController:labelVC animated:YES];
}
-(void)sanjiweiImage:(NSNotification *)sender{
    LabelViewController *labelVC = [[LabelViewController alloc]init];
    labelVC.label = sender.userInfo[@"三机位"];
    labelVC.mark = @"49";
    [self.navigationController pushViewController:labelVC animated:YES];
}
-(void)jiaotangImage:(NSNotification *)sender{
    LabelViewController *labelVC = [[LabelViewController alloc]init];
    labelVC.label = sender.userInfo[@"教堂婚礼"];
    labelVC.mark = @"38";
    [self.navigationController pushViewController:labelVC animated:YES];
}
-(void)lingzhenggengpai:(NSNotification *)sender{
    LabelViewController *labelVC = [[LabelViewController alloc]init];
    labelVC.label = sender.userInfo[@"领证跟拍"];
    labelVC.mark = @"50";
    [self.navigationController pushViewController:labelVC animated:YES];
}
-(void)hunlishiguangImage:(NSNotification *)sender{
    LabelViewController *labelVC = [[LabelViewController alloc]init];
    labelVC.label = sender.userInfo[@"婚礼灯光"];
    labelVC.mark = @"65";
    [self.navigationController pushViewController:labelVC animated:YES];

}
-(void)senxiImage:(NSNotification *)sender{
    LabelViewController *labelVC = [[LabelViewController alloc]init];
    labelVC.label = sender.userInfo[@"森系婚礼"];
    labelVC.mark = @"73";
    [self.navigationController pushViewController:labelVC animated:YES];
}
-(void)hongseImage:(NSNotification *)sender{
    LabelViewController *labelVC = [[LabelViewController alloc]init];
    labelVC.label = sender.userInfo[@"红色"];
    labelVC.mark = @"186";
    [self.navigationController pushViewController:labelVC animated:YES];
}
-(void)haijingImage:(NSNotification *)sender{
    LabelViewController *labelVC = [[LabelViewController alloc]init];
    labelVC.label = sender.userInfo[@"海景婚纱"];
    labelVC.mark = @"19";
    [self.navigationController pushViewController:labelVC animated:YES];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
